package org.ezplatform.office.questionnaire.entity;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseCorpEntity;

@MetaData(value = "题库管理")
@Entity(name = "QuestionnaireSet")
@Table(name = "oa_questionnaire_set", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
public class QuestionnaireSet extends BaseCorpEntity {

	private static final long serialVersionUID = 8759194582486138788L;
	
	@MetaData(value = "题库类型")
  	@Column(name = "set_type", length = 100)
    private String setType;
	
	@MetaData(value = "题库名称")
  	@Column(name = "set_name", length = 50)
    private String setName;
	
	@MetaData(value = "适用范围")
  	@Column(name = "set_scope", length = 32)
    private String setScope;
	
	@MetaData(value = "状态（1-启用，0-禁用）")
  	@Column(name = "status", length = 1)
    private int status;
	
	@MetaData(value = "描述")
  	@Column(name = "description", length = 500)
    private String description;
	
	@MetaData(value="题库题目总数")
	@Column(name="sum_topic_num")
	private String sumTopicNum;

	/**
	 * @return the setType
	 */
	public String getSetType() {
		return setType;
	}

	/**
	 * @param setType the setType to set
	 */
	public void setSetType(String setType) {
		this.setType = setType;
	}

	/**
	 * @return the setName
	 */
	public String getSetName() {
		return setName;
	}

	/**
	 * @param setName the setName to set
	 */
	public void setSetName(String setName) {
		this.setName = setName;
	}

	/**
	 * @return the setScope
	 */
	public String getSetScope() {
		return setScope;
	}

	/**
	 * @param setScope the setScope to set
	 */
	public void setSetScope(String setScope) {
		this.setScope = setScope;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the sumTopicNum
	 */
	public String getSumTopicNum() {
		return sumTopicNum;
	}

	/**
	 * @param sumTopicNum the sumTopicNum to set
	 */
	public void setSumTopicNum(String sumTopicNum) {
		this.sumTopicNum = sumTopicNum;
	}
	
}
